package com.yeyks.common.appcommon.param.finance;

import com.yeyks.common.annotation.PhoneCheck;
import com.yeyks.common.annotation.StrNotEmpty;
import com.yeyks.common.appcommon.result.CommonAuthHeader;
import com.yeyks.common.param.WithdrawalParam;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.EqualsAndHashCode;
import javax.validation.constraints.NotBlank;

import javax.validation.constraints.NotNull;
import java.io.Serializable;

/**
 * @author: dagny
 * @date: 2019/7/11 0011 14:02
 */
@EqualsAndHashCode(callSuper = true)
@Data
@ApiModel(description = "酒店申请提现参数信息")
public class AddWithdrawalParam extends CommonAuthHeader implements Serializable {
    private static final long serialVersionUID = 1L;

    @ApiModelProperty(value = "提现金额")
    @NotNull(message = "提现金额不能为空")
    private Integer amount;

    @ApiModelProperty(value = "手机号")
    @PhoneCheck
    private String phone;

    @ApiModelProperty(value = "验证码")
    @StrNotEmpty(message = "验证码输入不能为空")
    private String code;

    @ApiModelProperty(value = "类型(type，0营业提现,1床垫分成提现,2vip佣金提现)")
    //@NotNull(message = "提现类型不能为空")
    private Integer type;
}
